package actiontiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionReissueElement 发放道具
type ActionReissueElement struct {
	Id         int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	UserId     string         `json:"userId" gorm:"column:userId;type:varchar(256);not null;default:'';comment:用户id"`
	UserName   string         `json:"userName" gorm:"column:user_name;type:varchar(256);not null;default:'';comment:用户昵称"`
	ElementNo  int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:道具编号"`   // 创建人id
	TimeSecond int64          `json:"timeSecond" gorm:"column:time_second;type:bigint;default:0;not null;comment:补时间秒"` // 创建人id
	Number     int64          `json:"number" gorm:"column:number;type:bigint;default:0;not null;comment:补数量"`           // 补数量
	JobDesc    string         `json:"jobDesc" gorm:"column:job_desc;type:varchar(256);not null;default:'';comment:发放描述描述"`
	Status     int            `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment:1:待发放，2:发放完成"` //
	CreatedAt  time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt  time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"` //补发时间
	DeletedAt  gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
